package com.happy_hao.msg.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("emails")
public class Email {

    @TableId("email_id")
    private Long emailId;

    @TableField("host")
    private String host;

    @TableField("port")
    private Integer port;

    @jakarta.validation.constraints.Email
    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @jakarta.validation.constraints.Email
    @TableField("from_mailbox")
    private String fromMailbox;

    @TableField("from_name")
    private String fromName;

    @jakarta.validation.constraints.Email
    @TableField("to_mailbox")
    private String toMailbox;

    @TableField("subject")
    private String subject;

    @TableField("content")
    private String content;

    @TableField("send_time")
    private Date sendTime;

    @TableField("create_at")
    private Date createAt;

}
